Przykad 2.4. Realizacja mnoenia (mult) w Javie
public static void mult(int[] n1, int[] n2, int[] result) {
   int pos = result.length-1;

   // Wyczy wszystkie wartoci...
   for (int i = 0; i < result.length; i++) { result[i] = 0; }
   for (int m = n1.length-1; m >= 0; m--) {
      int off = n1.length-1  m;
      for (int n = n2.length-1; n >= 0; n--, off++) {
         int prod = n1[m]*n2[n];
         // Oblicz sum czciow, przenoszc z poprzedniej pozycji
         result[pos-off] += prod % 10;
         result[pos-off-1] += result[pos-off]/10 + prod/10;
         result[pos-off] %= 10;
      }
   }
}
